package com.md01.entity;

import java.util.Arrays;
import java.util.List;

public class Teacher {
    private String teacherName;//如何将正确的姓名赋值
    private String[] course;
    private List<String> student;

    public void show() {

        System.out.println(this.teacherName + "在教" + this.student + "同学学习" + Arrays.toString(this.course) + "课程");

    }


    public Teacher() {
    }

    public Teacher(String teacherName, String[] course, List<String> student) {
        this.teacherName = teacherName;
        this.course = course;
        this.student = student;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public String[] getCourse() {
        return course;
    }

    public void setCourse(String[] course) {
        this.course = course;
    }

    public List<String> getStudent() {
        return student;
    }

    public void setStudent(List<String> student) {
        this.student = student;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "teacherName='" + teacherName + '\'' +
                ", course=" + Arrays.toString(course) +
                ", student=" + student +
                '}';
    }
}
